﻿using CommunityToolkit.Mvvm.ComponentModel;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Media.Imaging;

namespace OpenCVWPF.ViewModel
{
    public partial class MainWindowViewModel:ObservableObject
    {
        /// <summary>
        /// 图像
        /// </summary>
        [ObservableProperty]
        BitmapSource? _mainImage;
        /// <summary>
        /// 图像1标题
        /// </summary>
        [ObservableProperty] string? _title1;

        /// <summary>
        /// 二值图
        /// </summary>
        [ObservableProperty] BitmapSource? _binarizationImage;
        /// <summary>
        /// 图像2标题
        /// </summary>
        [ObservableProperty] string? _title2;

        /// <summary>
        /// 灰度图
        /// </summary>
        [ObservableProperty] BitmapSource? _grayImage;

        /// <summary>
        /// 结果图
        /// </summary>
        [ObservableProperty] BitmapSource? _resultImage;

        /// <summary>
        /// 图像宽度
        /// </summary>
        [ObservableProperty] int? _width;

        /// <summary>
        /// 图像高度
        /// </summary>
        [ObservableProperty] int? _height;

        /// <summary>
        /// 通道数
        /// </summary>
        [ObservableProperty] int? _channels;
    }
}
